package br.com.EscolaDinamica.Entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name ="tab_usario")
@NamedQueries({
	@NamedQuery(name="usuario.buscarUsuario", query="from Usuario where login = :login and senha = :senha")
 })
public class Usuario {
	
	@Id
	@GeneratedValue
	private long id;
	@Column
	private String login;
	@Column  
    private String senha;
	 
	  public String getLogin() {
	    return login;
	  }
	 
	  public void setLogin(String login) {
	    this.login = login;
	  }
	 
	  public String getSenha() {
	    return senha;
	  }
	 
	  public void setSenha(String senha) {
	    this.senha = senha;
	  }
	  public long getId() {
			return id;
		}

		public void setId(long id) {
			this.id = id;
		}
}
